ElementAttributes

public interface ElementAttributes

HTML attributes that are specified on a particular Element.

Functions

Link copied to clipboard
public abstract Map<String, String> asMap()
Returns an immutable map that contains attributes of the element.
Link copied to clipboard
public abstract List<Attribute> asNodes()
Returns an immutable list that contains attribute nodes of the element.
Link copied to clipboard
public abstract boolean contains(String name)
Returns true when an attribute with the given name is specified on the element or has a default value, otherwise returns false.
Link copied to clipboard
public abstract Element element()
Returns Element, on which these attributes are specified.
Link copied to clipboard
public abstract String get(String name)
Returns the value of the attribute with the given name.
Link copied to clipboard
public abstract void put(String name, String value)
Adds a new attribute with the given name and value.
Link copied to clipboard
public abstract void remove(String name)
Removes an attribute with the given name.
Link copied to clipboard
public abstract int size()
Returns a number of the specified attributes.